package com.ys.entity.business;
import java.math.BigDecimal;
import java.util.Date;
import javax.persistence.Table;
import com.ys.annotation.YsField;
import com.ys.entity.base.BaseEntity;
/**
*/
@Table(name="TP_ShopRegisterPhaseSet", catalog="Id")
public class TpShopRegisterPhaseSet extends BaseEntity<TpShopRegisterPhaseSet> {

	@YsField(nameDataBase="Id", nameJava="id", typeDataBase="bigint")
	private Long id;
	@YsField(nameDataBase="PhaseNum", nameJava="phaseNum", typeDataBase="int")
	private Integer phaseNum;
	@YsField(nameDataBase="WorkTime", nameJava="workTime", typeDataBase="decimal")
	private BigDecimal workTime;
	@YsField(nameDataBase="HeadUserId", nameJava="headUserId", typeDataBase="varchar")
	private String headUserId;
	@YsField(nameDataBase="PhaseName", nameJava="phaseName", typeDataBase="varchar")
	private String phaseName;
	@YsField(nameDataBase="SetType", nameJava="setType", typeDataBase="tinyint")
	private Integer setType;
	@YsField(nameDataBase="ParentId", nameJava="parentId", typeDataBase="bigint")
	private Long parentId;
	@YsField(nameDataBase="PhaseType", nameJava="phaseType", typeDataBase="tinyint")
	private Integer phaseType;
	@YsField(nameDataBase="ParentNode", nameJava="parentNode", typeDataBase="varchar")
	private String parentNode;
	@YsField(nameDataBase="Point", nameJava="point", typeDataBase="decimal")
	private BigDecimal point;
	@YsField(nameDataBase="Status", nameJava="status", typeDataBase="tinyint")
	private Integer status;
	@YsField(nameDataBase="CreateTime", nameJava="createTime", typeDataBase="datetime")
	private Date createTime;
	@YsField(nameDataBase="UpdateTime", nameJava="updateTime", typeDataBase="datetime")
	private Date updateTime;

	public Long getId() {
		return id;
	}
	public TpShopRegisterPhaseSet setId(Long id) {
		this.id = id;
		return this;
	}
	public Integer getPhaseNum() {
		return phaseNum;
	}
	public TpShopRegisterPhaseSet setPhaseNum(Integer phaseNum) {
		this.phaseNum = phaseNum;
		return this;
	}
	public BigDecimal getWorkTime() {
		return workTime;
	}
	public TpShopRegisterPhaseSet setWorkTime(BigDecimal workTime) {
		this.workTime = workTime;
		return this;
	}
	public String getHeadUserId() {
		return headUserId;
	}
	public TpShopRegisterPhaseSet setHeadUserId(String headUserId) {
		this.headUserId = headUserId;
		return this;
	}
	public String getPhaseName() {
		return phaseName;
	}
	public TpShopRegisterPhaseSet setPhaseName(String phaseName) {
		this.phaseName = phaseName;
		return this;
	}
	public Integer getSetType() {
		return setType;
	}
	public TpShopRegisterPhaseSet setSetType(Integer setType) {
		this.setType = setType;
		return this;
	}
	public Long getParentId() {
		return parentId;
	}
	public TpShopRegisterPhaseSet setParentId(Long parentId) {
		this.parentId = parentId;
		return this;
	}
	public Integer getPhaseType() {
		return phaseType;
	}
	public TpShopRegisterPhaseSet setPhaseType(Integer phaseType) {
		this.phaseType = phaseType;
		return this;
	}
	public String getParentNode() {
		return parentNode;
	}
	public TpShopRegisterPhaseSet setParentNode(String parentNode) {
		this.parentNode = parentNode;
		return this;
	}
	public BigDecimal getPoint() {
		return point;
	}
	public TpShopRegisterPhaseSet setPoint(BigDecimal point) {
		this.point = point;
		return this;
	}
	public Integer getStatus() {
		return status;
	}
	public TpShopRegisterPhaseSet setStatus(Integer status) {
		this.status = status;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public TpShopRegisterPhaseSet setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public TpShopRegisterPhaseSet setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public static TpShopRegisterPhaseSet tpShopRegisterPhaseSet(
		Integer phaseNum,
		BigDecimal workTime,
		String headUserId,
		String phaseName,
		Integer setType,
		Long parentId,
		Integer phaseType,
		String parentNode,
		BigDecimal point,
		Integer status
			) {
		TpShopRegisterPhaseSet entity = new TpShopRegisterPhaseSet();
		entity.setPhaseNum(phaseNum);
		entity.setWorkTime(workTime);
		entity.setHeadUserId(headUserId);
		entity.setPhaseName(phaseName);
		entity.setSetType(setType);
		entity.setParentId(parentId);
		entity.setPhaseType(phaseType);
		entity.setParentNode(parentNode);
		entity.setPoint(point);
		entity.setStatus(status);
		return entity;
	}
}